package com.persicadev.shamsidatetimepicker;

import com.sahandrc.calendar.PersianCalendar;

/**
 * ShamsiControl changed listener interface.
 * <p>The onChanged() method is called whenever current date is changed:
 * <li> New ShamsiControl position is set
 * <li> ShamsiControl's value is changed
 */

public interface OnDateChangedListener {	
	/**
	 * Callback method to be invoked when current item changed
	 * @param shamsiControl the control whose state has changed
	 * @param oldValue the old value of current item
	 * @param newValue the new value of current item
	 */
	void onChanged(ShamsiControl shamsiControl, PersianCalendar oldValue, PersianCalendar newValue);
}
